package com.qst.financing.mapper;

import com.qst.financing.pojo.BankUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import java.util.List;

@Component
@Mapper
public interface BankUserMapper {

    int deleteByPrimaryKey(String userName);

    int insertSelective(BankUser record);

    BankUser selectByPrimaryKey(String userName,Integer bankid);

    int updateByPrimaryKeySelective(BankUser record);

    List<BankUser> selectAllBankUser(Integer bankid);
    @Select("select * from tb_bank_user where user_name=#{userName}")
    BankUser getByUsername(String userName);

}